home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 90 / CDMM_90_1.ISO / Cycling Manager 2 / CyclingManager2Demo.exe / Disk1 / data1.cab / Game / DataCM2 / MenuServer / MenuServerLibrary.cnh < prev    next >
Encoding:
Text File  |  2002-05-10  |  1.6 KB  |  61 lines

  1. class Net_Client
  2. {
  3. };
  4.  
  5. typedef func void callback();
  6. typedef func void sendevent(i32x _iParam0,i32x _iParam1,i32x _iParam2,i32x _iParam3,szx _szParam);
  7. typedef func void sendinterface(i32x _iParam0,i32x _iParam1,i32x _iParam2);
  8.  
  9.  
  10. // Phase management
  11. func void SetPrepareRaceFunc(callback _pPrepareRaceFunc);
  12. func void SetStopRaceFunc(callback _pStopRaceFunc);
  13. func void NextPhase();
  14. func void NextStage();
  15.  
  16. func void DayTurn();
  17. func void SetDayOfStage();
  18.  
  19. // calendar functions
  20. func i32x GetMode();
  21.  
  22. // Phase time
  23. func void SavePhaseStartTime();
  24. func i32x GetPhaseStartTime();
  25.  
  26.  
  27. // game mode
  28. func i32x GetGameMode();
  29. func void SetGameMode(i32x _iMode);
  30. func i32x IsGameModeEnded();
  31.  
  32. // GameManager Accessor
  33. func i32x GetCurrentDay();
  34. func i32x GetCurrentMDay();
  35. func i32x GetCurrentMonth();
  36. func i32x GetCurrentYear();
  37. func i32x GetCurrentRaceID();
  38. func i32x GetLastStageID();
  39. func i32x GetCurrentStageID();
  40. func i32x GetCurrentStageNumber();
  41.  
  42. func void UpdateClassifications();
  43.  
  44. func void SaveHeartRates();
  45. func void SaveHeartRatesList();
  46.  
  47. func void GenerateRaceRatings();
  48.  
  49. func void CheckPreRaceData();    // Tell Game manager to check all client data update in pre race phase
  50.  
  51. // Resolution server
  52. func void CreateInRaceServer(i32x iPort);
  53. func i32x GetGameServerState();
  54. func void LaunchRace(i32x _iDivision,sendevent _pSendEventFunc, sendinterface _pSendInterfaceFunc);
  55. func void StartRaceNow();
  56.  
  57. // console comands
  58. func void SetRaceSpeed(f32x _fSpeed);
  59. func void SetRaceDelta(i32x _iDelta);
  60. func void SetUDPFlow(f32x _fFlow);
  61.